package com.healthcloud.controller;

import com.healthcloud.entity.SysUserEntity;
import com.healthcloud.utils.ShiroUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Controller公共组件
 *
 * Created by yu on 2017/6/6.
 */
public abstract class AbstractController {

    protected Logger logger = LoggerFactory.getLogger(getClass());

    protected SysUserEntity getUser() {
        return ShiroUtils.getUserEntity();
    }


    protected Long getUserId() {
        return getUser().getId();
    }
}
